package leetcode.N1_N100;


import java.util.Arrays;

/**
 * @author xiwai [hww282306@alibaba-inc.com]
 * @version 1.0
 * @date 2020/11/20 3:53 下午
 */
public class N88 {

    public static void main(String[] args) {
        N88 n = new N88();
        int[] num1 = {2,0};
        int[] num2 = {1};
        n.merge(num1, 1, num2, 1);
        System.out.println(Arrays.toString(num1));
    }

    public void merge(int[] nums1, int m, int[] nums2, int n) {
        if (n == 0) {
            return;
        }
        System.arraycopy(nums2, 0, nums1, m, n);
        Arrays.sort(nums1);
    }


}
